﻿using IBll;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace Api.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class StuberController : ControllerBase, IStuBll
    {
         public StuberController(IStuBll bll)
        {
            Bll = bll;
        }

        public IStuBll Bll { get; }

        [HttpGet]
        public EmpDto Shpw(int index, int size)
        {
          return Bll.Shpw(index, size);
        }
    }
}
